import { createApp } from 'vue'
import App from './App.vue'
import ViewUIPlus from 'view-ui-plus'
import {vueAxios,axios} from './plugins/axios.js'
import router from './router'
import store from './store'
import './styles/index.less'
// import './mock'

//生成vue实例
const app = createApp(App)
//注册插件
app.use(store)
  .use(router)
  .use(ViewUIPlus)
  .use(vueAxios,axios)
  .mount('#app')

/*挂载到原型用config.globalProperties*/
app.config.globalProperties.$axios = axios
app.config.globalProperties.$Notice.config({top: 90,duration: 6})
app.config.globalProperties.$Message.config({top: 120,duration: 3})